package com.xiaobai.server.impl;

import com.xiaobai.server.TicketService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @author yangdaji
 * @version 1.0
 * @Description:
 * @date 22-2-11 下午 3:34
 */
// @Service //原始dubbo注解过时,采用DubboService注解
@DubboService  //在注册中心注册,暴露接口
@Component    //注入
public class TicketServiceImpl implements TicketService {

    /**
     * 购买门票
     *
     * @return
     */
    @Override
    public String getTicket() {
        return "<一点名牌> 购买成功!";
    }
}
